home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Games of Daze
/
Infomagic - Games of Daze (Summer 1995) (Disc 1 of 2).iso
/
x2ftp
/
msdos
/
fg
/
fgl402c
/
exc.arj
/
TEMP
/
09-12.C
< prev
next >
Wrap
Text File
|
1995-01-20
|
545b
|
33 lines
#include <fastgraf.h>
#include <stdio.h>
#include <stdlib.h>
void main(void);
#ifdef FG32
char buffer[20000];
#else
char far buffer[20000];
#endif
void main()
{
int old_mode;
fg_initpm();
if (fg_testmode(19,1) == 0)
{
printf("This program requires a 320 ");
printf("x 200 MCGA graphics mode.\n");
exit(1);
}
old_mode = fg_getmode();
fg_setmode(19);
fg_imagebuf(buffer,20000);
fg_showpcx("CORAL.PCX",0);
fg_waitkey();
fg_setmode(old_mode);
fg_reset();
}